package com.ruoyi.pms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品属性对象 pms_product_attribute
 * 
 * @author zouhuu
 * @date 2021-07-20
 */
public class PmsProductAttribute extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 属性分类ID */
    private Long attributeCategoryId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 属性选择类型(0 唯一 1 单选 2 多选) */
    @Excel(name = "属性选择类型(0 唯一 1 单选 2 多选)")
    private Integer selectType;

    /** 属性录入方式(0手工录入 1从列表中选取) */
    @Excel(name = "属性录入方式(0手工录入 1从列表中选取)")
    private Integer inputType;

    /** 可选值列表 用逗号隔开 */
    @Excel(name = "可选值列表 用逗号隔开")
    private String inputList;

    /** 是否支持手动新增(0不支持 1支持) */
    @Excel(name = "是否支持手动新增(0不支持 1支持)")
    private Integer handAddStatus;

    /** 属性的类型(0规格 1参数) */
    @Excel(name = "属性的类型(0规格 1参数)")
    private Integer type;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 是否删除(0正常1删除) */
    private Integer isDel;

    /** 状态(0正常1停用) */
    @Excel(name = "状态(0正常1停用)")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAttributeCategoryId(Long attributeCategoryId) 
    {
        this.attributeCategoryId = attributeCategoryId;
    }

    public Long getAttributeCategoryId() 
    {
        return attributeCategoryId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSelectType(Integer selectType) 
    {
        this.selectType = selectType;
    }

    public Integer getSelectType() 
    {
        return selectType;
    }
    public void setInputType(Integer inputType) 
    {
        this.inputType = inputType;
    }

    public Integer getInputType() 
    {
        return inputType;
    }
    public void setInputList(String inputList) 
    {
        this.inputList = inputList;
    }

    public String getInputList() 
    {
        return inputList;
    }
    public void setHandAddStatus(Integer handAddStatus) 
    {
        this.handAddStatus = handAddStatus;
    }

    public Integer getHandAddStatus() 
    {
        return handAddStatus;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("attributeCategoryId", getAttributeCategoryId())
            .append("name", getName())
            .append("selectType", getSelectType())
            .append("inputType", getInputType())
            .append("inputList", getInputList())
            .append("handAddStatus", getHandAddStatus())
            .append("type", getType())
            .append("sort", getSort())
            .append("isDel", getIsDel())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
